def isPerfectNumber(n):
    if n<=0:
        return None
    else:
        s=0
        for i in range(1,n+1):
            if n%i==0:
              s=s+i
            if s==n :
              return True
        
    
n=eval(input("请输入一个数:"))
print(isPerfectNumber(n))
print("{}是完全数".format(n))